package org.jogdiary2011.controller.person;

import java.util.List;

import org.jogdiary2011.model.Person;
import org.jogdiary2011.service.PersonService;
import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class ListController extends Controller {

    PersonService personService = new PersonService();
    
    @Override
    public Navigation run() throws Exception {
        
        
        List<Person> people = personService.findAll();
        requestScope("people", people);

        return forward("list.jsp");
    }
}
